package com.atwy.business.feign;

import com.atwy.common.RespBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("storage")
public interface StorageFeign {

    @PostMapping(path = "/deductStorage")
    RespBean storage(@RequestParam("commodityCode") String commodityCode,
                     @RequestParam("count") int count);
}
